package com.git.hui.yinshua.biz.goods.dao.domain;

import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;

/**
 * @author YiHui
 * @date 2024/6/13
 */
@Data
public class GoodsEntity implements Serializable {
    private Integer id;
    private Integer categoryId;
    private String goodsName;
    private String intro;
    private String thumb;
    /**
     * 价格，单位为分
     */
    private Integer price;
    /**
     * 折扣价格，单位为分
     */
    private Integer discountPrice;

    private Integer minCnt;

    private Integer salesCnt;

    /**
     * 库存 -1 表示无限库存
     */
    private Integer stock;

    private Integer state;

    private Integer recommend;

    private Integer deleted;

    private Long createAt;
    private Long updateAt;
    /**
     * 发布时间
     */
    private Long publishAt;

    /**
     * 是否开启拼团
     */
    private Integer ptEnable;

    /**
     * 拼团最少人数
     */
    private Integer ptNum;

    /**
     * 拼团时长，分钟为单位
     */
    private Integer ptTimePeriod;

    private List<GoodsDetailEntity> detailList;
    private List<GoodsSpecEntity> specList;
}
